<%-- 
    Document   : areaAdministrativa
    Created on : 08/11/2014, 14:50:04
    Author     : gabrielbmoro
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">

    <head>

        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">

        <title>CREAS - Alegrete</title>

        <!-- Bootstrap Core CSS -->
        <link href="css/bootstrap.min.css" rel="stylesheet">

        <!-- Custom CSS -->
        <link href="css/business-casual.css" rel="stylesheet">

        <!-- Fonts -->
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" type="text/css">
        <link href="http://fonts.googleapis.com/css?family=Josefin+Slab:100,300,400,600,700,100italic,300italic,400italic,600italic,700italic" rel="stylesheet" type="text/css">

        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->

    </head>

    <body>

        <div class="brand">
            <img src="images/logoFaixaSite.png" alt="Creas - Centro de Referência Especializado de Assistência Social" style="width:60%;height:98%">
        </div>
        <div class="address-bar"></div>

        <!-- Navigation -->
        <!-- Navigation -->
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <!-- navbar-brand is hidden on larger screens, but visible when the menu is collapsed -->
                    <a class="navbar-brand" href="index.html">Business Casual</a>
                </div>
                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li class="active">
                            <a href="index.html">Inicial</a>
                        </li>
                        <li>
                            <a data-toggle="dropdown" href="#">
                                CREAS
                            </a>
                            <ul class="dropdown-menu">
                                <!-- Links de menu dropdown -->
                                <li><a href="creaDefinicao.html">O que é o CREAS?</a></li>
                                <li><a href="populacaoAdulta.html">População Adulta de Rua</a></li>
                                <li><a href="mulheresVitimasViolencia.html">Mulheres Vítimas de Violência</a></li>
                                <li><a href="criancasAdolescentesVitimasViolencia.html">Crianças e Adolescentes Vítimas de Violência</a></li>
                                <li><a href="programaDeErraticacao.html">Programa de Erraticação do Trabalho Infantil</a></li>
                                <li><a href="adolescentesInfratores.html">Adolescentes Infratores</a></li>
                            </ul>
                        </li>

                        <li>
                            <a href="equipe.html">Equipe</a>
                        </li>
                        <li>
                            <a href="projetos.html">Projeto</a>
                        </li>
                        <li>
                            <a href="artigos.html">Artigos</a>
                        </li>
                        <li>
                            <a href="faleConosco.html">Fale Conosco</a>
                        </li>
                    </ul>
                </div>
                <!-- /.navbar-collapse -->
            </div>
            <!-- /.container -->
        </nav>

        <div class="container">


            <div class="row">

                <div class="box">
                    <div class="col-lg-12 text-center">



                        <h1 class="brand-before">
                            <small>Bem-Vindo a Área Administrativa </small>
                        </h1>
                        <%
                            boolean resposta = Boolean.parseBoolean(session.getAttribute("usuarioLogado").toString());
                            if (resposta) {
                                out.println("<div class=\"row\">");
                                out.println("<div class=\"box\">");
                                out.println("<div class=\"col-lg-12\">");
                                out.println("<div class=\"form-horizontal\">");
                                out.println("<form method=\"post\" action=\"/SisCreas/TrataEnvioNoticia\">");
                                out.println("<label> Escolha a Imagem a ser Adicionada :</label>");
                                out.println("<br /><br />");
                                out.println("<input type=\"file\" name=\"imagem\"/>");
                                out.println("<br /><br />");
                                out.println("<label> Digite o texto a ser Inserido :</label><br /><br />");
                                out.println("<textarea name=\"texto\" rows=\"15\" cols=\"100\"></textarea>  <br /><br />");
                                out.println("<input type=\"submit\" class=\"btn-success\" value=\"Salvar Notícia\"/>");
                                out.println("</form><p style=\"text-align: left;\"><a href=\"\" class=\"btn-danger\">Sair</a></p>");
                                out.println("</div></div></div></div>");

                            } else {
                                out.println("<div class=\"alert alert-block\">");
                                out.println("<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>");
                                out.println("<strong>Realize a operação novamente!</strong> Melhor checar suas credenciais, verifique seu login e a sua senha.");
                                out.println("</div>");
                            }

                        %>
                        <br /><br />

                        <div class="row">
                            <div class="box">
                                <div class="col-lg-12">
                                    <hr>
                                    <h2 class="intro-text text-center">Parceiros
                                        <strong>do CREAS</strong>
                                    </h2>
                                    <hr>

                                    <a href="http://www.facabonitocampanha.blogspot.com.br/"><img src="images/facabonito.jpg" alt="Faça Bonito" style="width:20%;height:28%"></a>
                                    <a href="http://www.fnpeti.org.br/12dejunho/"><img src="images/infaltil.jpg" alt="Campanha 12 de Junho" style="width:22%;height:28%"></a>
                                </div>
                            </div>
                        </div>

                    </div>
                    <!-- /.container -->

                    <footer>
                        <div class="container">
                            <div class="row">
                                <div class="col-lg-12 text-center">
                                    <p>Copyright &copy; Creas - Alegrete 2014</p>
                                </div>
                            </div>
                        </div>
                    </footer>

                    <!-- jQuery Version 1.11.0 -->
                    <script src="js/jquery-1.11.0.js"></script>

                    <!-- Bootstrap Core JavaScript -->
                    <script src="js/bootstrap.min.js"></script>

                    <!-- Script to Activate the Carousel -->
                    <script>
                        $('.carousel').carousel({
                            interval: 5000 //changes the speed
                        })
                    </script>

                    </body>

                    </html>
